package listener;

import gui.ChessGUI;
import gui.PieceGUI;
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
import logic.ChessGame;

public class PieceHandlerMouseExit implements EventHandler<MouseEvent> {

	private PieceGUI pieceGUI;
	private ChessGame chessGame;
	private ChessGUI mainPane;

	public PieceHandlerMouseExit(PieceGUI pieceGUI, ChessGame chessGame,
			ChessGUI chessGUI) {
		this.pieceGUI = pieceGUI;
		this.mainPane = chessGUI;
		this.chessGame = chessGame;
	}

	@Override
	public void handle(MouseEvent event) {
		mainPane.removeAllMarkPoints();
	}

}
